﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pata.SylkSharp.Core.Bll
{
    /// <summary>
    /// A Record of a Sylk file.
    /// </summary>
    public interface IRecord
    {
        /// <summary>
        /// Get the fields of this record.
        /// </summary>
        IEnumerable<IField> Fields { get; }

        /// <summary>
        /// Get the type of this record.
        /// </summary>
        RecordType Type { get; }

        /// <summary>
        /// Get the Enum value used for an unknow field.
        /// </summary>
        /// <returns></returns>
        object GetUnknownFieldType();
    }
}
